package router

import (
	"blog/app/http"
	"github.com/gin-gonic/gin"
)

func (router *Router) admin(group *gin.RouterGroup) {
	admin := group.Group("admin")
	{
		api := http.ApiGroup.AdminApi
		admin.POST("/", api.Create)
		admin.PUT("/:id", api.Edit)
		admin.DELETE("/:id", api.Del)
		admin.GET("/", api.Lists)
	}
}
